Sains Malaysiana 55(8)(2026): 1262-1271

http://doi.org/10.17576/jsm-2026-5508-03

 

Crescent Moon Segmentation via Histogram Percentiles and Simplified K-Means Algorithm

(Segmentasi Bulan Sabit melalui Persentil Histogram dan Algoritma K-Means Ringkas)

 

SYED ALI SYED AHMAD YUNUS1, NAZHATULSHIMA AHMAD2,*, IBRAHIM MOHAMED1, ROSLI SALLEH3 & MOHD SAIFUL ANWAR MOHD NAWAWI4

 

1Institute of Mathematical Sciences, Faculty of Science, University of Malaya, Malaysia

2Department of Physics, Faculty of Science, University of Malaya, Malaysia

3Department of Computer System and Technology, Faculty of Computer Science and Information Technology, University of Malaya, Malaysia

4Department of Fiqh and Usul, Academy of Islamic Studies, University of Malaya, Malaysia

 

Diserahkan: 3 Februari 2026/Diterima: 29 Julai 2026

 

Abstract

Detection of crescent moon in digital images is of interest to researchers and practitioners involved in crescent moon sighting activities. The ability to detect the crescent moon shape, if it exists, will contribute to the decision making related to the local Islamic calendar based on the observation method and support the expected visibility of the crescent moon using the calculation method. However, under the syariah (Islamic law) consideration, any crescent moon detection procedure on the original image should not ‘create what is not’ during the image processing. Hence, in this paper, we propose a new crescent moon shape detection procedure by increasing the contrast of the image without changing its original feature. This is done by segregating the ordered pixel intensity values of the image according to their quartiles and maximizing the contrast in each quartile.  Next, another procedure is proposed to segment the crescent moon from the background. These procedures are applied on selected crescent moon images taken at Teluk Kemang Observatory Station, Negeri Sembilan, Malaysia. We found that the procedures are able to detect the crescent moon shape if it exists in the image, and segment it from the background. More importantly, false detection is also avoided. The results are very important to support the local Islamic religious authority in making the final decision on the beginning of important Islamic events that depends on the visibility of the crescent moon in Malaysia.

Keywords: Feature extraction; image contrast; Islamic calendar; object segmentation; quartile plots

 

Abstrak

Pengesanan anak bulan dalam imej digital adalah perkara yang menarik minat para penyelidik dan pengamal yang terlibat dalam aktiviti cerapan anak bulan. Keupayaan untuk mengesan bentuk anak bulan, sekiranya wujud akan menyumbang kepada proses membuat keputusan berkaitan dengan kalendar Islam tempatan berdasarkan kaedah cerapan serta menyokong jangkaan kebolehnampakan anak bulan menggunakan kaedah pengiraan. Namun, dari sudut pertimbangan syariah, sebarang prosedur pengesanan anak bulan pada imej asal tidak seharusnyamencipta sesuatu yang tiadasemasa pemprosesan imej. Oleh itu, dalam kertas ini kami mencadangkan satu prosedur baharu untuk mengesan bentuk anak bulan dengan meningkatkan kontras imej tanpa mengubah ciri asalnya. Kaedah ini dilakukan dengan memisahkan nilai keamatan piksel imej mengikut kuartil dan memaksimumkan kontras dalam setiap kuartil. Seterusnya, satu lagi prosedur dicadangkan untuk mengasingkan anak bulan daripada latar belakang. Prosedur ini diaplikasikan pada imej anak bulan terpilih yang diambil di Balai Cerap Teluk Kemang, Negeri Sembilan, Malaysia. Kami mendapati bahawa prosedur ini berupaya mengesan bentuk anak bulan sekiranya ia wujud dalam imej, serta mengasingkannya daripada latar belakang. Lebih penting lagi, kesalahan dalam pengesanan juga dapat dielakkan. Hasil kajian ini sangat penting untuk menyokong pihak berkuasa agama Islam tempatan dalam membuat keputusan muktamad mengenai permulaan peristiwa penting Islam yang bergantung kepada kebolehnampakan anak bulan di Malaysia.

Kata kunci: Ciri pengekstrakan; kalendar Islam; kontras imej; plot kuartil; segmentasi objek

 

RUJUKAN

Acharya, T. & Ray, A.K. 2005. Image Processing Principles and Applications. New Jersey: John Wiley & Sons, Inc.

Ahmad, N., Nawawi, M.S., Zainuddin, M.Z., Nasir, Z.M., Yunus, R.M. & Mohamed, I. 2020. A new crescent moon visibility criteria using circular regression model: A case study of Teluk Kemang, Malaysia. Sains Malaysiana 49(4): 859-870.

Al-Bukhari. 2000. Sahih al-Bukhari. Riyad: Daral-Salam.

Awcock, G.J. & Thomas, R. 1995. Applied Image Processing. London: Macmillan Press Ltd.

Caponetti, L., Castellano, G. & Corsini, V. 2017. MR brain image segmentation: A framework to compare different clustering techniques. Information 8(4): 138.

Crumey, A. 2014. Human contrast threshold and astronomical visibility. Monthly Notices of the Royal Astronomical Society 442(3): 2600-2619.

Faid, M.S., Nawawi, M.S., Saadon, M.H., Ahmad, N. & Zin, A.A. 2022. Islamic historical review on the middle age lunar crescent visibility criterion. Journal of Al-Tamaddun 17(1): 109-125.

Fakhar, M., Moalem, P. & Badri, M.A. 2014. Lunar crescent detection based on image processing algorithms. Earth Moon Planets 114: 17-34.

Hummel, R. 1977. Image enhancement by histogram transformation. Computer Graphics and Image Processing 6(2): 184-195.

JAKIM. 2021. Compilation of Islamic Law by the Muzakarah Committee. National Committee for Islamic Affair Malaysia (MKI), No 31, 2021.

JAKIM. 2019. Crescent Sighting Guideline. First Edition. https://www.islam.gov.my/en/guideline/2607-garis-panduan-cerapan-hilal

MacDonald, L.W. 1996. Ethical issues in digital image manipulation. The Fourth Color Imaging Conference: Color Science, Systems and Applications. pp. 209-213.

Marion, A. 1991. Introduction to Image Processing. Cornwall: Chapman and Hall.

Petrou, M. & Petrou, C. 2010. Image Processing: The Fundamentals. West Sussex: John Wiley & Sons Ltd.

Sejzei, A.H. & Jamzad, M. 2016. Evaluation of various digital image processing techniques for detecting critical crescent moon and introducing CMD - A tool for critical crescent moon detection. Optik 127(3): 1511-1525.

Sohn, Y. 2013. Photos of the ethical issues. Journal of Basic Design & Art 167-177.

SSFC. 2021. The view of Sharia Law: The Use of Imkanur Rukyah’s New criteria for Early Determination for Hijrah Months in the Hijrah Calendar in Malaysia, Selangor State Fatwa Committee, No 2/2021 (https://www.muftiselangor.gov.my/fatwa-personalisation/fatwa-tahunan/keputusan-fatwa-xwarta/2016/1139-pandangan-hukum-syarak-penggunaan-kriteria-baharu-imkanur-rukyah-bagi-penentuan-awal-bulan-hijrah-dalam-kalendar-hijrah-di-malaysia)

Zulkeflee, A., Yussof, W., Umar, R., Ahmad, N., Mohamad, F., Man, M. & Awalludin, E. 2022. Detection of a new crescent moon using the Maximally Stable Extremal Regions (MSER) technique. Astronomy and Computing 41: 100651.

 

*Pengarang untuk surat-menyurat; email: n_ahmad@um.edu.my

 

 

 

 

 

 

 

 

 

 

 

 

 

 

           

sebelumnya